package myTree;

public class HuffmanExam {
    public static void main(String[] args) {
        HuffmanTree hbt = new HuffmanTree();
        String str = "abcd";
        double[] w = {1, 3, 5, 7};
        int n0 = str.length();
        hbt.setdata(n0, w, str);
        hbt.createHT();
        hbt.createHCode();
        hbt.dispHuffman();
    }
}
